package com.example.springfeature.threadlocal;

import com.example.springfeature.aop.Car;

/**
 * Created with IDEA
 *
 * @author: 董文辉
 * Date: 2019/2/22
 * Time: 15:55
 */
public class  CarThreadLocal<T> extends ThreadLocal<T>{

    private final String carName;

    public CarThreadLocal() {
        super();
        this.carName = null;
    }

    public CarThreadLocal(String carName) {
        this.carName = carName;
    }

    @Override
    public String toString() {
        return "CarThreadLocal{" +
                "carName='" + carName + '\'' +
                '}';
    }


}
